package jm.algorithm.sort;

/**
 * @Description 用来验证是否为稳定性排序
 * @date 2022/5/2 14:43
 */
public class Student implements Comparable<Student> {
    public int score;
    public int age;

    public Student(int score, int age) {
        this.score = score;
        this.age = age;
    }

    @Override
    public int compareTo(Student o) {
        return age - o.age;
    }
}
